package annotation;



/**
 * @author com.ymy.hadoop
 * @date 2018/12/15 15:00
 */
@RZBean(table = "twh",from = "伟华")
public class Animal {

    private Integer id;
    private String name;

    // @RZFiled("gender"),key为value的时候，value可以省略
    @RZFiled(value = "gender")
    private String sex;

    @Override
    public String toString() {
        return "Animal{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Animal(Integer id, String name, String sex) {
        this.id = id;
        this.name = name;
        this.sex = sex;
    }

    public Animal(){
    }
}
